<link rel="stylesheet" type="text/css" href="res/plugins/syntaxhighlighter/styles/shCoreDefault.css">
<link rel="stylesheet" type="text/css" href="res/media/css/space/blog-common.css">
<ul class="breadcrumb">
	<li><i class="icon-home"></i> <a href="index.html">个人空间</a> <i
		class="icon-angle-right"></i></li>
	<li><a href="#">博客</a></li>
</ul>

<div class="blog module">
	<div class="blog-title">
		<h2>
			<span class="icon" style="background:#44ac57;" title="原创博客">原</span>
			<span class="icon" style="background:#fd6245;" title="个人博客列表置顶博客">顶</span>
			<span ng-bind="blog.title"></span>
		</h2>
		<div class="blog-stat">
			发表于5天前(2014-12-05 13:47)&nbsp;&nbsp;
			 阅读（<span class="g" ng-bind="blog.view_count"></span>）&nbsp;|&nbsp;
			 评论（<a href="#comments"><span class="g" ng-bind="comments.length"></span></a>） |&nbsp;
			 收藏 （<span class="g" ng-bind="blog.favorite_count"></span>）
				
				<span class="admin" ng-if="self">
					<a ui-sref="space.blog({blog_id:blog.id})">编辑</a>&nbsp;|&nbsp;
					<a href="javascript:;" ng-click="deleteBlog(blog.id);">删除</a>
				</span>
				<span class="admin" ng-if="!self">
					<a href="javascript:;" ng-if="!blog.is_favorite" ng-click="favoriteBlog(blog);">我要收藏</a>
					<span ng-if="blog.is_favorite">
						<span >已收藏</span>&nbsp;|&nbsp;
						<a href="javascript:;" ng-click="cancelFavorite(blog)">取消</a>
					</span>
				</span>
		</div>
		<div class="tvote" onclick="vote(352736)"
			title="都有0个人赞过了，你也来赞一下吧！不会扣积分哦！">
			<em class="vote">赞</em><em class="num vote_count">0</em>
		</div>
	</div>
	
	<div class="blog-snippet">
		<em class="corner">摘要</em> <span ng-bind="blog.snippet"></span>
		<div class="BlogTags" ng-if="blog.tags">
			<a href="http://www.oschina.net/search?scope=blog&amp;q=javascript"
				class="tag" ng-bind="blog.tags"></a>
		</div>
	</div>
	<!-- <div class="blog-content" ng-bind-html="blog.content | toHtml" sh-lighter content="blog.content"></div> -->
	<div class="blog-content" ng-model="blog.content" sh-lighter></div>
	<div class="blog-links">
		<ul>
		</ul>
	</div>
</div>
<div class="blog-comment-list module" ng-if="comments.length > 0">
	<div class="hd">评论列表</div>
	<div class="bd">
		<div class="comment-list ng-scope" ng-repeat="comment in comments">
			<img
				ng-src="{{comment.sender_pic_path}}"
				alt="" class="user-pic pull-left">
			<div style="overflow:hidden;">
				<div class="comment-content">
					<a ui-sref="space({user_id:comment.id})" target="_blank"
						ng-bind="comment.sender_name" class="ng-binding">hewep</a><br>
					<span ng-bind="comment.content" class="ng-binding">mm</span>
				</div>
				<div class="comment-opts">
					<span class="pull-left time ng-binding"> 3天前 </span> 
					<span class="pull-right"> <a href="javascript:;">回复</a> | 
					<a href="/action/tweet/go?obj=849871&amp;type=17&amp;user=248834"
						target="_blank">赞</a>
					</span>
				</div>
			</div>

		</div>
	</div>
</div>
<div class="blog-comment comment-editable module">
	<div class="hd">评一下</div>
	<div id="blog_comment" class="editable" contenteditable="true"></div>
	<div class=" bn pull-right">
		<span class="error_msg" ng-show="!isLogin">用户尚未登录</span>
		<span class="error_msg" ng-show="answer_content_error">请输入回复内容</span>
		<button class="btn green mini" ng-click="commentBlog(blog);">发表</button>
	</div>
</div>